#ifndef _CLINKROOMCOMMAND_H_
#define _CLINKROOMCOMMAND_H_

#include "IDoUndoCommand.h"
class CDeleteCommand;

class CLinkRoomCommand : public IDoUndoCommand
{
public:
	CLinkRoomCommand (int fromId, int toId, int fromLinkIndex, int toLinkIndex);
	~CLinkRoomCommand();

	void redo ();
	void undo ();

private:
	int m_fromId;
	int m_toId;
	int m_fromLinkIndex;
	int m_toLinkIndex;

	int m_fromOldRoomID;
	int m_fromOldDoorID;
	int m_fromOldLinkIndex;
	int m_toOldRoomID;
	int m_toOldDoorID;
	int m_toOldLinkIndex;

	CDeleteCommand *m_pDelCmd1;
	CDeleteCommand *m_pDelCmd2;
};

#endif
